package com.report.reportserver.mapper;

import com.report.reportserver.model.Authority;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AuthorityMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Authority record);

    int insertSelective(Authority record);

    Authority selectByPrimaryKey(Integer id);

    @Select("select menuId from r_authority where roleId = #{role}")
    List<Integer> selectByRoleId(Integer role);

    int updateByPrimaryKeySelective(Authority record);

    int updateByPrimaryKey(Authority record);
}